<template>
  <a-config-provider :locale="locale">
    <div id="app">
      <router-view v-if="refresh"/>
    </div>
  </a-config-provider>
</template>

<script>

import zhCN from 'ant-design-vue/lib/locale-provider/zh_CN'

export default {
  data () {
    return {
      locale: zhCN,
      refresh: true
    }
  },
  computed: {

  },
  provide () {
    return {
      reload: this.reload
    }
  },
  methods: {
    reload () {
      this.refresh = false
      this.$nextTick(function () {
        this.refresh = true
      })
    }
  }
}
</script>
